<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="org.springframework.security.core.context.SecurityContextHolder" %>
<%@ page import="org.springframework.security.core.Authentication" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%response.setStatus(HttpServletResponse.SC_OK);%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:importAttribute />
<div id="${PORTLET_INSTANCE_ID}"
	class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all">
	<div class="portlet-header ui-widget-header ui-corner-all">
		<span class="ui-icon ui-icon-minusthick"></span><a>${title }</a>
	</div>
<%-- 	<div class="portlet-content" style="height:${HEIGHT}"> --%>
	<div class="portlet-content">
			<div style="margin:20px;padding:10px;">
				<h1>Sorry, access is denied</h1>
		
				<p>
				<%= request.getAttribute("SPRING_SECURITY_403_EXCEPTION")%>
				</p>
				<p>
				<%      Authentication auth = SecurityContextHolder.getContext().getAuthentication();
						//auth.getAuthorities();
				        if (auth != null) { %>
				       <!-- Authentication object as a String: <%= auth.toString() %><br /><br /> --> 
				<%      } %>
				</p>
				<div>
					UserName:<security:authentication property="name"/><br/>
					Authorities:<security:authentication property="authorities"/>
				</div>
					<div>
						<a href="/lemon">返回主页</a>
					</div>
				</div>
				</div>
		</div>
</div>